﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="InstantTicketReport.aspx.cs" Inherits="MonkeyWarranty.Web.Reports.InstantTicketReport" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>
        <%=Resources.GlobalStrings.Reports %> - <%=Resources.GlobalStrings.InstantTickets %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%=Resources.GlobalStrings.Reports %> - <%=Resources.GlobalStrings.InstantTickets %></h2>
    <p></p>
    <span class="failureNotification">
        <asp:Literal ID="lblErrorMessage" runat="server"></asp:Literal></span>
    <div style="min-width: 960px;">
        <fieldset class="register">
        <div>
            <%=Resources.GlobalStrings.DateFrom %><asp:TextBox ID="txtDateFrom" runat="server" CssClass="textEntry date"></asp:TextBox>
            <%=Resources.GlobalStrings.DateTo %><asp:TextBox ID="txtDateTo" runat="server" CssClass="textEntry date"></asp:TextBox>
            <asp:Button ID="btnLoad" runat="server" 
                Text="<%$Resources:GlobalStrings, LoadRecords %>" onclick="btnLoad_Click" />
        </div>
        </fieldset>
    </div>
    <div>
        <fieldset class="register">
            <legend>
                <asp:Literal ID="ltrPeriod" runat="server"></asp:Literal></legend>
            <asp:Repeater ID="rptTicketEmployeeCounts" runat="server" DataSourceID="">
                <ItemTemplate>
                    <p>
                        <%#DataBinder.Eval(Container.DataItem, "Name") %>: <%#DataBinder.Eval(Container.DataItem, "TicketCount") %>
                    </p>
                </ItemTemplate>
            </asp:Repeater>
        </fieldset>
    </div>
    
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=txtDateFrom.ClientID %>").calendar({ timeSeparators: null });
            $("#<%=txtDateTo.ClientID %>").calendar({ timeSeparators: null });
        });
    </script>
 </asp:Content>
